package com.lagou.service.impl;

import com.lagou.dao.impl.AccountDaoImpl;
import com.lagou.domain.Account;
import com.lagou.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: spring
 * @description:
 * @author: Mr.Wang
 * @create: 2020-12-15 16:27
 **/
@Service("accountService")
public class AccountServiceImpl implements IAccountService {


	@Autowired
	private AccountDaoImpl accountDao;

	public List<Account> findAll() {
		return accountDao.findAll();
	}

	public Account findById(Integer id) {
		return accountDao.findById(id);
	}

	public void insert(Account account) {
		accountDao.insert(account);
	}

	public void update(Account account) {
		accountDao.update(account);
	}

	public void delete(Integer id) {
		accountDao.delete(id);
	}
}
